export function uniCloudUploadFile(
    filePath:string
) {
    return uniCloud.uploadFile({
        filePath,
        cloudPath: `${+new Date()}${filePath.match(/.[a-z]+$/i)}`,
        onUploadProgress:  (progressEvent) =>{
            var percentCompleted = Math.round(
                (progressEvent.loaded * 100) / progressEvent.total
            );
            console.log(percentCompleted)
        }
    });
}